package com.maker.mcp.business.bean;


import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.ToString;
import java.time.LocalDateTime;

@Data
@ToString
@Entity
@Table
public class Product {

    @Id
    private String productId; // 业务主键，非自增
    @Column(nullable = false)
    private String productName;
    @Column(nullable = false)
    private String brand;

    private String description;
    @Column(nullable = false)
    private Integer price;

    @Column(nullable = false)
    private Integer stock;

    /**
     * 状态：0-下架，1-上架
     */
    @Column(nullable = false)
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}

